package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

@Component
public class Hospital {
    //select name,lat,lng,address,province,city,domain,uid,geom from hospital
    //attributes
    private String name;
    private Float lat;
    private Float lng;
    private String address;
    private String province;
    private String city;
    private String domain;
    private String uid;
    private String geom;
    //constructors
    public Hospital(){super();}
    public Hospital(String name, Float lat, Float lng, String address, String province, String city, String domain, String uid, String geom) {
        this.name = name;
        this.lat = lat;
        this.lng = lng;
        this.address = address;
        this.province = province;
        this.city = city;
        this.domain = domain;
        this.uid = uid;
        this.geom = geom;
    }
    //toString
    @Override
    public String toString() {
        return "Hospital{" +
                "name='" + name + '\'' +
                ", lat=" + lat +
                ", lng=" + lng +
                ", address='" + address + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", domain='" + domain + '\'' +
                ", uid='" + uid + '\'' +
                ", geom='" + geom + '\'' +
                '}';
    }

    //setter
    public void setName(String name) { this.name = name; }
    public void setLat(Float lat) { this.lat = lat; }
    public void setLng(Float lng) { this.lng = lng; }
    public void setAddress(String address) { this.address = address; }
    public void setProvince(String province) { this.province = province; }
    public void setCity(String city) { this.city = city; }
    public void setDomain(String domain) { this.domain = domain; }
    public void setUid(String uid) { this.uid = uid; }
    public void setGeom(String geom) { this.geom = geom; }
    //getter
    public String getName() { return name; }
    public Float getLat() { return lat; }
    public Float getLng() { return lng; }
    public String getAddress() { return address; }
    public String getProvince() { return province; }
    public String getCity() { return city; }
    public String getDomain() { return domain; }
    public String getUid() { return uid; }
    public String getGeom() { return geom; }
}
